import request from '@/utils/request'

// 查询算子列表
export function listOperators(query) {
  return request({
    url: '/ruoyi-operators/operators/list',
    method: 'get',
    params: query
  })
}

// 查询算子详细
export function getOperators(name) {
  return request({
    url: '/ruoyi-operators/operators/' + name,
    method: 'get'
  })
}

// 新增算子
export function addOperators(data) {
  return request({
    url: '/ruoyi-operators/operators',
    method: 'post',
    data: data
  })
}

// 修改算子
export function updateOperators(data) {
  return request({
    url: '/ruoyi-operators/operators',
    method: 'put',
    data: data
  })
}

// 删除算子
export function delOperators(name) {
  return request({
    url: '/ruoyi-operators/operators/' + name,
    method: 'delete'
  })
}
